// Mock Patient Data for Medical CRM System
export const patients = [
  {
    id: 'P-100001',
    name: '张伟',
    gender: '男',
    age: 45,
    phone: '13812345678',
    idCard: '310101197605123456',
    address: '上海市浦东新区张杨路500号',
    email: 'zhangwei@example.com',
    bloodType: 'A',
    emergencyContact: '张小红',
    emergencyPhone: '13987654321',
    insuranceType: '社会基本医疗保险',
    insuranceNo: 'YLBX20220001',
    firstVisitDate: '2022-03-15',
    lastVisitDate: '2023-09-20',
    department: '内科',
    doctor: '李医生',
    registrationType: '普通门诊',
    status: '活跃',
    tags: ['高血压', '糖尿病'],
    medicalHistory: ['2型糖尿病(2015年确诊)', '高血压(2018年确诊)', '胆囊切除术(2010年)'],
    allergyHistory: ['青霉素过敏'],
    avatar: 'https://randomuser.me/api/portraits/men/1.jpg'
  },
  {
    id: 'P-100002',
    name: '李娜',
    gender: '女',
    age: 32,
    phone: '13612345678',
    idCard: '310102199105123456',
    address: '上海市静安区南京西路1266号',
    email: 'lina@example.com',
    bloodType: 'O',
    emergencyContact: '李明',
    emergencyPhone: '13587654321',
    insuranceType: '商业医疗保险',
    insuranceNo: 'YLBX20220002',
    firstVisitDate: '2022-05-10',
    lastVisitDate: '2023-08-05',
    department: '妇产科',
    doctor: '王医生',
    registrationType: '专家门诊',
    status: '活跃',
    tags: ['孕期检查'],
    medicalHistory: ['剖腹产(2020年)'],
    allergyHistory: [],
    avatar: 'https://randomuser.me/api/portraits/women/1.jpg'
  },
  {
    id: 'P-100003',
    name: '王强',
    gender: '男',
    age: 58,
    phone: '13712345678',
    idCard: '310103196501123456',
    address: '上海市徐汇区漕宝路100号',
    email: 'wangqiang@example.com',
    bloodType: 'B',
    emergencyContact: '王丽',
    emergencyPhone: '13687654321',
    insuranceType: '社会基本医疗保险',
    insuranceNo: 'YLBX20220003',
    firstVisitDate: '2021-11-20',
    lastVisitDate: '2023-10-15',
    department: '心内科',
    doctor: '刘医生',
    registrationType: '急诊',
    status: '活跃',
    tags: ['冠心病', '高血脂'],
    medicalHistory: ['冠心病(2016年确诊)', '高血脂(2015年确诊)', '胃溃疡(2010年)'],
    allergyHistory: ['磺胺类药物过敏'],
    avatar: 'https://randomuser.me/api/portraits/men/2.jpg'
  },
  {
    id: 'P-100004',
    name: '赵芳',
    gender: '女',
    age: 28,
    phone: '13512345678',
    idCard: '310104199506123456',
    address: '上海市长宁区长宁路1018号',
    email: 'zhaofang@example.com',
    bloodType: 'AB',
    emergencyContact: '赵远',
    emergencyPhone: '13787654321',
    insuranceType: '社会基本医疗保险',
    insuranceNo: 'YLBX20220004',
    firstVisitDate: '2022-08-05',
    lastVisitDate: '2023-07-10',
    department: '皮肤科',
    doctor: '陈医生',
    registrationType: '普通门诊',
    status: '活跃',
    tags: ['湿疹'],
    medicalHistory: ['过敏性鼻炎(2018年确诊)'],
    allergyHistory: ['尘螨过敏'],
    avatar: 'https://randomuser.me/api/portraits/women/2.jpg'
  },
  {
    id: 'P-100005',
    name: '钱明',
    gender: '男',
    age: 62,
    phone: '13912345678',
    idCard: '310105196012123456',
    address: '上海市黄浦区人民路200号',
    email: 'qianming@example.com',
    bloodType: 'A',
    emergencyContact: '钱晓',
    emergencyPhone: '13887654321',
    insuranceType: '社会基本医疗保险',
    insuranceNo: 'YLBX20220005',
    firstVisitDate: '2020-09-18',
    lastVisitDate: '2023-11-02',
    department: '骨科',
    doctor: '张医生',
    registrationType: '专家门诊',
    status: '活跃',
    tags: ['骨质疏松', '膝关节炎'],
    medicalHistory: ['膝关节置换术(2019年)', '骨质疏松(2017年确诊)'],
    allergyHistory: [],
    avatar: 'https://randomuser.me/api/portraits/men/3.jpg'
  },
  {
    id: 'P-100006',
    name: '孙丽',
    gender: '女',
    age: 41,
    phone: '13412345678',
    idCard: '310106198203123456',
    address: '上海市普陀区真北路1000号',
    email: 'sunli@example.com',
    bloodType: 'O',
    emergencyContact: '孙航',
    emergencyPhone: '13687654321',
    insuranceType: '商业医疗保险',
    insuranceNo: 'YLBX20220006',
    firstVisitDate: '2021-05-20',
    lastVisitDate: '2023-10-25',
    department: '内分泌科',
    doctor: '赵医生',
    registrationType: '普通门诊',
    status: '活跃',
    tags: ['甲状腺功能亢进'],
    medicalHistory: ['甲状腺功能亢进(2020年确诊)'],
    allergyHistory: ['碘造影剂过敏'],
    avatar: 'https://randomuser.me/api/portraits/women/3.jpg'
  },
  {
    id: 'P-100007',
    name: '周军',
    gender: '男',
    age: 50,
    phone: '13212345678',
    idCard: '310107197301123456',
    address: '上海市杨浦区国定路100号',
    email: 'zhoujun@example.com',
    bloodType: 'B',
    emergencyContact: '周洁',
    emergencyPhone: '13587654321',
    insuranceType: '社会基本医疗保险',
    insuranceNo: 'YLBX20220007',
    firstVisitDate: '2021-08-15',
    lastVisitDate: '2023-09-08',
    department: '神经内科',
    doctor: '林医生',
    registrationType: '急诊',
    status: '活跃',
    tags: ['脑梗后遗症', '高血压'],
    medicalHistory: ['脑梗塞(2021年)', '高血压(2015年确诊)'],
    allergyHistory: [],
    avatar: 'https://randomuser.me/api/portraits/men/4.jpg'
  },
  {
    id: 'P-100008',
    name: '吴芳',
    gender: '女',
    age: 35,
    phone: '13112345678',
    idCard: '310108198807123456',
    address: '上海市闵行区莘庄工业区',
    email: 'wufang@example.com',
    bloodType: 'AB',
    emergencyContact: '吴刚',
    emergencyPhone: '13487654321',
    insuranceType: '社会基本医疗保险',
    insuranceNo: 'YLBX20220008',
    firstVisitDate: '2022-02-18',
    lastVisitDate: '2023-08-20',
    department: '消化内科',
    doctor: '陈医生',
    registrationType: '普通门诊',
    status: '活跃',
    tags: ['胃炎', '结肠炎'],
    medicalHistory: ['胃炎(2019年确诊)', '结肠炎(2021年确诊)'],
    allergyHistory: ['乳糖不耐受'],
    avatar: 'https://randomuser.me/api/portraits/women/4.jpg'
  },
  {
    id: 'P-100009',
    name: '郑明',
    gender: '男',
    age: 48,
    phone: '13012345678',
    idCard: '310109197508123456',
    address: '上海市宝山区共和新路5000号',
    email: 'zhengming@example.com',
    bloodType: 'A',
    emergencyContact: '郑亮',
    emergencyPhone: '13387654321',
    insuranceType: '商业医疗保险',
    insuranceNo: 'YLBX20220009',
    firstVisitDate: '2021-03-25',
    lastVisitDate: '2023-11-10',
    department: '呼吸内科',
    doctor: '黄医生',
    registrationType: '专家门诊',
    status: '活跃',
    tags: ['慢性支气管炎', '肺气肿'],
    medicalHistory: ['慢性支气管炎(2018年确诊)', '肺气肿(2020年确诊)'],
    allergyHistory: ['花粉过敏'],
    avatar: 'https://randomuser.me/api/portraits/men/5.jpg'
  },
  {
    id: 'P-100010',
    name: '马丽',
    gender: '女',
    age: 39,
    phone: '13612378945',
    idCard: '310110198405123456',
    address: '上海市嘉定区菊园新区',
    email: 'mali@example.com',
    bloodType: 'O',
    emergencyContact: '马超',
    emergencyPhone: '13287654321',
    insuranceType: '社会基本医疗保险',
    insuranceNo: 'YLBX20220010',
    firstVisitDate: '2022-01-10',
    lastVisitDate: '2023-10-05',
    department: '眼科',
    doctor: '毛医生',
    registrationType: '普通门诊',
    status: '活跃',
    tags: ['近视', '干眼症'],
    medicalHistory: ['干眼症(2021年确诊)'],
    allergyHistory: [],
    avatar: 'https://randomuser.me/api/portraits/women/5.jpg'
  }
];

// 患者就诊记录
export const patientVisits = [
  {
    id: 'V-100001',
    patientId: 'P-100001',
    patientName: '张伟',
    visitDate: '2023-09-20',
    visitType: '复诊',
    department: '内科',
    doctor: '李医生',
    chiefComplaint: '高血压，头晕',
    diagnosis: '原发性高血压3级(极高危)',
    treatmentPlan: '药物治疗，生活方式干预',
    prescriptionId: 'RX-20230015',
    followUpDate: '2023-10-20',
    notes: '血压控制不佳，需调整药物方案',
    fee: 280.5
  },
  {
    id: 'V-100002',
    patientId: 'P-100001',
    patientName: '张伟',
    visitDate: '2023-08-15',
    visitType: '复诊',
    department: '内科',
    doctor: '李医生',
    chiefComplaint: '血糖波动，乏力',
    diagnosis: '2型糖尿病',
    treatmentPlan: '调整胰岛素用量，三个月复查',
    prescriptionId: 'RX-20230010',
    followUpDate: '2023-09-15',
    notes: '空腹血糖较前有所改善',
    fee: 350.0
  },
  {
    id: 'V-100003',
    patientId: 'P-100002',
    patientName: '李娜',
    visitDate: '2023-08-05',
    visitType: '产检',
    department: '妇产科',
    doctor: '王医生',
    chiefComplaint: '孕28周产检',
    diagnosis: '宫内妊娠28周',
    treatmentPlan: '维持产检计划，补充叶酸',
    prescriptionId: 'RX-20230011',
    followUpDate: '2023-08-20',
    notes: '胎儿发育正常，建议适当运动',
    fee: 420.0
  },
  {
    id: 'V-100004',
    patientId: 'P-100003',
    patientName: '王强',
    visitDate: '2023-10-15',
    visitType: '急诊',
    department: '心内科',
    doctor: '刘医生',
    chiefComplaint: '胸闷，胸痛',
    diagnosis: '不稳定型心绞痛',
    treatmentPlan: '住院治疗，冠脉造影检查',
    prescriptionId: 'RX-20230016',
    followUpDate: '2023-10-30',
    notes: '建议住院观察，完善检查',
    fee: 1280.5
  },
  {
    id: 'V-100005',
    patientId: 'P-100004',
    patientName: '赵芳',
    visitDate: '2023-07-10',
    visitType: '复诊',
    department: '皮肤科',
    doctor: '陈医生',
    chiefComplaint: '皮肤瘙痒，红斑',
    diagnosis: '慢性湿疹',
    treatmentPlan: '外用药膏，口服抗过敏药',
    prescriptionId: 'RX-20230009',
    followUpDate: '2023-08-10',
    notes: '症状有所缓解，建议避免过敏原',
    fee: 180.0
  }
];

// 患者预约记录
export const appointments = [
  {
    id: 'A-100001',
    patientId: 'P-100001',
    patientName: '张伟',
    appointmentDate: '2023-10-20',
    timeSlot: '09:00-09:30',
    department: '内科',
    doctor: '李医生',
    appointmentType: '复诊',
    status: '已确认',
    purpose: '血压复查',
    notes: '请携带之前的检查报告',
    createTime: '2023-09-20'
  },
  {
    id: 'A-100002',
    patientId: 'P-100002',
    patientName: '李娜',
    appointmentDate: '2023-11-05',
    timeSlot: '10:00-10:30',
    department: '妇产科',
    doctor: '王医生',
    appointmentType: '产检',
    status: '已确认',
    purpose: '32周产检',
    notes: '需空腹抽血',
    createTime: '2023-10-20'
  },
  {
    id: 'A-100003',
    patientId: 'P-100003',
    patientName: '王强',
    appointmentDate: '2023-10-30',
    timeSlot: '14:00-14:30',
    department: '心内科',
    doctor: '刘医生',
    appointmentType: '复诊',
    status: '已确认',
    purpose: '冠心病复查',
    notes: '请带上心电图检查结果',
    createTime: '2023-10-15'
  },
  {
    id: 'A-100004',
    patientId: 'P-100005',
    patientName: '钱明',
    appointmentDate: '2023-11-15',
    timeSlot: '11:00-11:30',
    department: '骨科',
    doctor: '张医生',
    appointmentType: '复诊',
    status: '待确认',
    purpose: '膝关节疼痛复查',
    notes: '需做X光检查',
    createTime: '2023-10-25'
  },
  {
    id: 'A-100005',
    patientId: 'P-100007',
    patientName: '周军',
    appointmentDate: '2023-11-10',
    timeSlot: '15:00-15:30',
    department: '神经内科',
    doctor: '林医生',
    appointmentType: '复诊',
    status: '已确认',
    purpose: '脑梗后遗症复查',
    notes: '请携带核磁共振检查结果',
    createTime: '2023-10-18'
  }
];

// 随访记录
export const followUps = [
  {
    id: 'F-100001',
    patientId: 'P-100001',
    patientName: '张伟',
    followUpDate: '2023-09-25',
    followUpType: '电话随访',
    followedBy: '王护士',
    content: '患者反映血压有所下降，但仍有轻微头晕症状。建议继续服药，保持低盐饮食。',
    nextFollowUpDate: '2023-10-25',
    status: '已完成'
  },
  {
    id: 'F-100002',
    patientId: 'P-100003',
    patientName: '王强',
    followUpDate: '2023-10-20',
    followUpType: '电话随访',
    followedBy: '李护士',
    content: '患者出院后恢复良好，无明显胸闷胸痛症状。提醒按时服药，避免剧烈运动。',
    nextFollowUpDate: '2023-11-20',
    status: '已完成'
  },
  {
    id: 'F-100003',
    patientId: 'P-100007',
    patientName: '周军',
    followUpDate: '2023-09-15',
    followUpType: '电话随访',
    followedBy: '张护士',
    content: '患者反映右侧肢体活动较前改善，但仍有轻度麻木感。建议继续康复训练。',
    nextFollowUpDate: '2023-10-15',
    status: '已完成'
  },
  {
    id: 'F-100004',
    patientId: 'P-100006',
    patientName: '孙丽',
    followUpDate: '2023-10-30',
    followUpType: '短信随访',
    followedBy: '赵护士',
    content: '提醒患者11月5日复诊，需空腹验血检查甲状腺功能。',
    nextFollowUpDate: '2023-11-30',
    status: '待执行'
  },
  {
    id: 'F-100005',
    patientId: 'P-100002',
    patientName: '李娜',
    followUpDate: '2023-10-25',
    followUpType: '电话随访',
    followedBy: '陈护士',
    content: '孕妇产检情况良好，胎儿发育正常。提醒注意休息，适当运动，保持营养均衡。',
    nextFollowUpDate: '2023-11-05',
    status: '已完成'
  }
]; 